import React, { memo } from 'react'
import { useNavigate } from 'react-router-dom'

const login = memo(() => {
    const navigate=useNavigate()
  return (
    <div>
        <button onClick={()=>{localStorage.setItem('token',1);navigate('/Home')}}>点击登录</button>
    </div>
  )
})

export default login